package Game;


import Java01.PokerManager;

import java.util.Random;

public abstract class ComputerPlayer extends PersonPlayer{
    String[] s = {"翠花","小明","大头","李华","二狗"};
    Random r = new Random();
    @Override
    public void initMoney() {
        setMoney((r.nextInt(9) + 1) * 100);
    }

    @Override
    public void initName() {
        setName(s[r.nextInt(9) % 5]);
    }

    @Override
    public void pokerPrint() {
        PokerManager pokerManager = new PokerManager();
        setPoker(pokerManager.getPoker());
    }
}
